﻿using Model;
using Repository;

namespace Service
{
    public class UserService : IUserService
    {
        public async Task<List<UserVo>> Query()
        {
            var userRepo = new UserRepository();
            var data  = await userRepo.Query();
            return data.Select(d => new UserVo() { UserName = d.userName }).ToList();
        }
    }
}
